/* 定义版心样式 */
.w {
    width: 1200px;
    margin: 0 auto;
}


/* 右侧侧边栏模块 */
.aside-right {
    position: fixed;
    top: 80%;
    left: 50%;
    width: 50px;
    /* background-color: #fff; */
    margin-left: 600px;
}

.aside-right ul li {
    display: none;
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 20px;
    text-align: center;
    margin: 10px auto;
    border-radius: 50%;
    border: 1px solid #ccc;
}

/* top区域 */
.top {
    height: 75px;
    margin: 20px 0;
}

.logo {
    float: left;
    height: 75px;
    /* background-color: yellow; */

}

.search {
    float: left;
    width: 300px;
    height: 75px;
    /* background-color: pink; */
    margin-left: 500px;
}

.search input {
    float: left;
    height: 40px;
    border: 1px solid rgb(68, 138, 68);
    margin-top: 10px;
}

.search button {
    float: left;
    width: 40px;
    height: 40px;
    color: #000;
    text-align: center;
    background-color: rgb(119, 197, 119);
    border: none;
    margin-top: 10px;

}

/* 导航栏模块 */
.nav {
    height: 50px;
    line-height: 48px;
    text-align: center;
    background-color: rgb(68, 138, 68);
}

.nav ul {
    display: flex;
    justify-content: space-around;
    width: 100%;
    height: 100%;
}

.nav ul li {
    margin: 1px 0;
}

/* 经过li的时候的变化 */
.nav ul li:hover {
    background-color: #fff;
}

.nav ul li:hover a {
    color: rgb(68, 138, 68);
}

.nav ul li a {
    display: block;
    color: #fff;
    font-size: 25px;
}

/* 主体区域 */
.banner {
    height: 350px;
    /* background-color: purple; */
    margin-top: 20px;
}

.slideshow {
    position: relative;
    float: left;
    width: 630px;
    height: 350px;
    overflow: hidden;

}

.slideshow .forword,
.slideshow .next {
    display: none;
    width: 50px;
    height: 80px;
    line-height: 80px;
    color: #bbb;
    font-size: 50px;
    text-align: center;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 9999;
}

.slideshow .forword {
    position: absolute;
    top: 50%;
    left: 0;
}

.slideshow .next {
    position: absolute;
    top: 50%;
    right: 0;
}

.slideshow ul {
    position: absolute;
    top: 0;
    left: 0;
    width: 8000px;
}

.slideshow ul li {
    float: left;
}

/* 把导入的图片缩放为这个固定大小 */
.slideshow ul li img {
    width: 630px;
    height: 350px;
    cursor: default;
}

/* 轮播图小圆点 */
.circle {
    position: absolute;
    top: 93%;
    /* 定位元素水平居中 */
    left: 50%;
    height: 13px;
    z-index: 3;
    transform: translateX(-50%);
}

.circle li {
    float: left;
    width: 13px;
    height: 13px;
    border: 2px solid rgba(255, 255, 255, .7);
    margin: 0 3px;
    border-radius: 50%;
    cursor: pointer;
}

.circle li.current {
    background-color: #fff;
}

/* 新闻模块 */
.news {
    float: left;
    width: 420px;
    height: 275px;
    margin-left: 50px;
}

.news h3 {
    font-size: 28px;
}

.news ul li {
    height: 40px;
    line-height: 40px;
    font-size: 18px;
    padding-left: 30px;
    background: url(../images/green-point.png) no-repeat 17px 17px/5px;
    /* 溢出文字省略号显示 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.news ul li a:hover {
    color: rgb(119, 197, 119);

}
.news ul li a {
    display: block;
    color: #000;
}

/* 知识模块 */
.knowledge {
    margin-top: 30px;
}

.knowledge h3 {
    height: 50px;
    line-height: 50px;
    /* background-color: rgb(68, 138, 68); */
    font-size: 22px;
    /* color: #fff; */
    /* text-align: center; */
    font-weight: 400;
    border-radius: 18px;
}

.knowledge h3::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: rgb(68, 138, 68);
    margin-right: 20px;
}

.knowledge p {
    font-size: 14px;
    text-indent: 2em;
}

.knowledge p a {
    color: #136ec2;
}

.knowledge p a:hover {
    text-decoration: underline;
}

.knowledge h4 {
    font-size: 18px;
    font-weight: 400;
    margin: 10px 0;
    padding-left: 20px;
    background: url(../images/green-point.png) no-repeat 5px 7px/6px;
}

/* 精选活动 */
.activity h3 {
    height: 30px;
    line-height: 25px;
    font-size: 21px;
    font-weight: 400;
    background: url(../images/activity.png) no-repeat;
    padding-left: 30px;
    margin-top: 40px;
}

.activity-bd li {
    float: left;
    width: 279px;
    height: 350px;
    border: 1px solid #f4f4f4;
    margin-right: 20px;
    text-align: center;
}

.activity-bd li:hover {
    box-shadow: 1px 1px 1px 1px #eee;
}

.activity-bd li h4 {
    font-size: 22px;
    margin: 10px 0;
}

.activity-bd li img {
    width: 279px;
    height: 279px;
}

.activity-bd li a {
    font-size: 15px;
    color: #136ec2;
}

/* 广告模块 */
.sponsor h3 {
    height: 30px;
    line-height: 25px;
    font-size: 21px;
    font-weight: 400;
    background: url(../images/sponsor.png) no-repeat;
    padding-left: 30px;
    margin-top: 40px;
}

ul.advertising {
    position: relative;
    width: 1220px;
}

.advertising li {
    float: left;
    width: 143px;
    margin: 0 5px 0 0;
    border: 1px solid #f6f6f6;
    overflow: hidden;
}

.advertising li img {
    width: 100%;
    transition: all 0.5s ease-out;
}

.advertising .advertising-text {
    position: absolute;
    bottom: 0px;
    height: 30px;
    width: 143px;
    background-color: rgba(0, 0, 0, .5);
    color: #fff;
    font-size: 13px;
    text-align: center;
    line-height: 30px;
    text-shadow: 0px 0px 5px #000000, 2px 2px 10px #000000;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), 70%, rgba(255, 255, 255, 0));
}

.advertising .advertising-text p {
    padding-left: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.advertising li img:hover {
    transform: scale(1.1);
}

.advertising li div:hover {
    color: yellow;
}

/* 尾部模块 */
.footer {
    height: 270px;
    background-color: rgb(245, 245, 245);
    padding-top: 30px;
    margin-top: 40px;
}

.copyright {
    float: left;
    width: 500px;
}

.copyright p {
    /* 行高太低，不美观 */
    line-height: 1.4;
    color: #555;
    margin-top: 20px;
}

.link {
    float: left;
    margin-left: 170px;
}

.link h3 {
    font-size: 20px;
    font-weight: 400;
    color: #555;
}

.link textarea {
    width: 400px;
    height: 150px;
    padding: 5px;
    margin-top: 10px;
}

.link input[type="submit"] {
    display: block;
    width: 80px;
    height: 30px;
    border: 1px solid #ccc;
    margin-top: 10px;
    cursor: pointer;
}